package com.thoughtworks.mobinium;

import java.io.PrintStream;
import java.util.Map;

public class TestResultPrinter {

	private PrintStream writer;

	public TestResultPrinter(PrintStream writer) {
		super();
		this.writer = writer;
	}

	public void print(Map<String,String> results) {
		for (Map.Entry<String,String> entry : results.entrySet()) {
			writer.println(entry.getKey() + " : " + entry.getValue());
		}
		writer.flush();
		writer.close();
	}
}
